package linwen.wang.exception.controller;


import linwen.wang.exception.commom.ResultVO;
import linwen.wang.exception.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


/**
 * @ClassName UserController
 * @Description
 * @Author lin
 * @Date 2022/3/25 下午11:21
 * @Version V1.0
 */
@RestController
@RequestMapping("")
public class UserController {
    @Autowired
    private UserService userService;
    @GetMapping("/user/{id}")
    public ResultVO getUserById(@PathVariable("id") String id){
        return userService.getUserById(id);
    }

}
